package cn.twh.wall.beetl.function;

import org.beetl.core.Context;
import org.beetl.core.Function;

/**
 * 获取流水保存的数据
 *
 * @author TWH
 */
public class GetSeqCacheDataFunction implements Function {
    @Override
    public Object call(Object[] paras, Context ctx) {
        if (paras.length == 2) {
            Cache.getSeqDataCache(String.valueOf(paras[0]), Boolean.parseBoolean(String.valueOf(paras[1])));
        }
        return Cache.getSeqDataCache(String.valueOf(paras[0]), false);
    }
}
